projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c09b5ea
)
textview: fix assertion when toggling caret visibility
author
Christian Hergert
<chergert@redhat.com>
Tue, 21 Apr 2020 20:39:50 +0000
(13:39 -0700)
committer
Christian Hergert
<chergert@redhat.com>
Tue, 21 Apr 2020 20:39:50 +0000
(13:39 -0700)
When toggling caret visibility (with F7) we would hit an assertion if the
cursor is currently blinking. This adjusts things to ensure that we should
be showing the carent when scheduling our blink timeouts.
Fixes #2647
gtk/gtktextview.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextview.c
b/gtk/gtktextview.c
index 1835c4fd14e793658dd220af7c08cae911d0c284..8426cbb4acbd0bb001165f4c65581f7b2efc3005 100644
(file)
--- a/
gtk/gtktextview.c
+++ b/
gtk/gtktextview.c
@@
-6048,7
+6048,7
@@
gtk_text_view_check_cursor_blink (GtkTextView *text_view)
{
GtkTextViewPrivate *priv = text_view->priv;
- if (cursor_blinks (text_view))
+ if (cursor_blinks (text_view)
&& cursor_visible (text_view)
)
{
if (!priv->blink_tick)
add_blink_timeout (text_view, FALSE);